package com.runen.wnhz.runen.di.module;

import com.runen.wnhz.runen.presenter.Contart.MyOrderContract;
import com.runen.wnhz.runen.presenter.model.MyOrderModel;
import com.runen.wnhz.runen.service.MyOrderServiceApi;

import dagger.Module;
import dagger.Provides;

/**
 * 描述：
 * 作者： 天天童话丶
 * 时间： 2018/6/1.
 */

@Module
public class MyOrderModule {

    public MyOrderContract.View view;

    public MyOrderModule(MyOrderContract.View view) {
        this.view = view;
    }

    @Provides
    public MyOrderContract.View provideView(){
        return view;
    }

    @Provides
    public MyOrderModel provideMyOrderModel(MyOrderServiceApi myOrderServiceApi){
        return new MyOrderModel(myOrderServiceApi);
    }
}
